package com.heima.wemedia.controller.v1;

import com.heima.apis.admin.IAdminClient;
import com.heima.apis.wemedia.IWemediaClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.ChannerlDto;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.wemedia.service.WmChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 陈辉
 * @data 2023 10:45
 */
@RestController
@RequestMapping("/api/v1/channel")
public class WmChannelController {

    @Autowired
    private WmChannelService wmChannelService;

    @Autowired
    private IWemediaClient iWemediaClient;

    @Autowired
    private IAdminClient iAdminClient;


    @GetMapping("/channels")
    public ResponseResult channels(){
        return iAdminClient.findAll();
    }
}
